package com.zyb.ext.ioc.service;

import com.zyb.ext.ioc.annotate.ExtResourceAnnotation;
import com.zyb.ext.ioc.annotate.ExtServiceAnnotation;
import lombok.extern.slf4j.Slf4j;

@Slf4j
@ExtServiceAnnotation
public class PersonServiceImpl {

    //注入userService属性
    @ExtResourceAnnotation
    private UserService userService;

    public void printPersonInfo(){
        System.out.println("PersonServiceImpl >>>>>>>>>");
    }

    public void printUserInfo(){
        userService.printUserInfo();
    }
}
